/* importing google fonts */
@import url('https://fonts.googleapis.com/css2?family=Miniver&family=Nunito:wght@200;300;400;600;700&family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", serif;
}

/* styling foe whole site */

html {
    scroll-behavior: smooth;
}

ul {
    list-style: none;
}
a{
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

.nav-logo {
    width: 25%;
}

img {
    width: 100%;
    
}

.section-content {
    margin: 0 auto;
    padding: 0 20px;
    max-width: var(--site-max-width);
}

.section-title {
    text-align: center;
    padding: 60px 0 100px;
    text-transform: uppercase;
    font-size: var(--font-size-xl);
}

.section-title::after {
    content: "";
    width: 80px;
    height: 5px;
    display: block;
    margin: 10px auto 0;
    border-radius: var(--border-radius-s);
    background: var(--primary-color);
}

:root {
 /* colours */
--white-color: #fff;
--dark-color: #1c1c1c;
--primary-color: #8b0000;
--secondary-color: #e0e0e0;

/* font size */
--font-size-s:0.9rem;
--font-size-n:1rem;
--font-size-m:1.12rem;
--font-size-l:1.5rem;
--font-size-xl:2rem;
--font-size-xxl:2.3rem;

/* font weight */
--font-weight-normal: 400;
--font-weight-medium: 500;
--font-weight-semibold: 600;
--font-weight-bold: 700;

/* border radius */
--border-radius-s: 8px;
--border-radius-m: 30px;
--border-radius-circle: 50%;

/* site max width */
--site-max-width: 1300px;

}


/* navbar styling */

header {
    position: fixed;
    width: 100%;
    z-index: 5;
    background-color: var(--white-color);
    
}

header .navbar {
    display: flex;
    padding: 5px;
    align-items: center;
    justify-content: space-between;
}

.navbar .nav-logo {
    color: rgb(158, 0, 0);
}

.navbar .nav-menu {
    display: flex;
    gap: 10px;
}

.navbar .nav-menu .nav-link {
    padding: 10px 18px;
    color:rgb(158, 0, 0) ;
    font-size: var(--font-size-m);
    border-radius: var(--border-radius-m);
    transition: 0.3s ease;
 
}

.navbar .nav-menu .nav-link:hover {
    color: rgb(255, 255, 255);
    background: var(--primary-color);

}

.navbar .nav-menu :where(#menu-close-button, #menu-open-button) {
    
    display: none;
}

.navbar #menu-open-button {
    display: none;
}





/* hero section */

.hero-section {
    min-height: 100vh;
    background: var(--secondary-color);
}

.hero-section .section-content {
    display: flex;
    align-items: center;
    min-height: 100vh;
    color: var(--dark-color);
    justify-content: space-between;
}

.hero-section .hero-details .title {
    font-size: var(--font-size-xxl);
    color: var(--primary-color);
    font-family: "Poppins",sans-serif;
}

.hero-section .hero-details .subtitle {
    margin-top: 8px;
    max-width: 70%;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
}

.hero-section .hero-details .description {
    max-width: 70%;
    margin: 24px 0 40px;
    font-size: var(--font-size-m);
}

.hero-section .hero-details .buttons {
    display: flex;
    gap: 23px;
}

.hero-section .hero-details .button {
    padding: 10px 26px;
    border: 2px solid transparent;
    color: var(--white-color);
    border-radius: var(--border-radius-m);
    background: var(--primary-color);
    font-weight: var(--font-weight-medium);
    transition: 0.3s ease;
}

.hero-section .hero-details .button:hover,
.hero-section .hero-details .contact-us {
    color: var(--dark-color);
    border-color: var(--dark-color);
    background: transparent;
}

.hero-section .hero-details .contact-us:hover {
    color: var(--white-color);
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.hero-section.hero-image-wrapper {
    max-width: 500px;
    margin-right: 30px;
}







/* about section */

.about-section {
    padding: 120px 0;
    background: var(--white-color);
}

.about-section .section-content {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: space-between;
    
}
.about-section .about-image-wrapper .about-image {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-circle);
}

.about-section .about-details .section-title {
    padding: 0;
}

.about-section .about-details {
    max-width: 50%;
}

.about-section .about-details .text {
    line-height: 30px;
    margin: 50px 0 30px;
    text-align: center;
    font-size: var(--font-size-m);
}

.about-section .social-link-list {
    display: flex;
    gap: 25px;
    justify-content: center;
}

.about-section .social-link-list .social-link {
    color: var(--primary-color);
    font-size: var(--font-size-l);
    transition: 0.2s ease;
}

.about-section .social-link-list .social-link:hover {
    color: var(--dark-color);
}






/* Types section */

.types-section {
    padding: 50px 0 100px;
    background: var(--secondary-color);
}

.types-section .slider-wrapper {
    overflow: hidden;
    margin: 0 60px 50px;
}

.types-section .type {
    user-select: none;
    display: flex;
    padding: 35px;
    text-align: center;
    flex-direction: column;
    align-items: center;
}

.types-section .type .user-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    margin-bottom: 50px;
    border-radius: var(--border-radius-circle);
}

.types-section .type .name {
    margin-bottom: 16px;
    font-size: var(--font-size-m);
}

.types-section .type .feedback {
    line-height: 25px;
}

.types-section .swiper-pagination-bullet {
    width: 15px;
    height: 15px;
    opacity: 1;
    background: var(--primary-color);
}

.types-section .swiper-slide-button {
    margin-top: -50px;
    color: var(--primary-color);
    transition: 0.3s ease;
}

.types-section .swiper-slide-button:hover {
    color: var(--dark-color);

}




/* contact section */

.contact-section {
    padding: 50px 0 100px;
    background:  rgb(250, 216, 221);
}

.contact-section .section-content {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    justify-content: space-between;

}

.contact-section .contact-info-list .contact-info {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    align-items: center;

}

.contact-section .contact-info-list .contact-info i {
    font-size: var(--font-size-m);
}


.contact-section .contact-form .form-input {
    width: 100%;
    height: 50px;
    padding: 0 12px;
    outline: none;
    margin-bottom: 16px;
    background: var(--white-color);
    border-radius: var(--border-radius-s);
    border: 1px solid var(rgb(99, 98, 98));
}

.contact-section .contact-form {
    max-width: 50%;
}

.contact-section .contact-form .form-input:focus {
    border-color: var(--primary-color);
}

.contact-section .contact-form textarea .form-input {
    height: 100px;
    padding: 12px;
    resize: vertical;
}

.contact-section .contact-form .submit-button {
    padding: 10px 26px;
    margin-top: 10px;
    color: var(--white-color);
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-medium);
    background: var(--primary-color);
    border-radius: var(--border-radius-m);
    border: 1px solid var(--dark-color);
    transition: 0.3s ease;
}

.contact-section .contact-form .submit-button:hover {
    color: var(--dark-color);
    background: transparent;
}






/* footer section */

.footer-section {
    padding: 20px 0;
    background: var(--primary-color);
}

.footer-section .section-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-section :where(.copyrights-text, .social-link, .policy-link) {
    color: var(--white-color);
    transition: 0.2s ease;
}

.footer-section .social-link-list {
    display: flex;
    gap: 25px;
}

.footer-section .social-link-list .social-link {
    font-size: var(--font-size-l);
}

.footer-section .social-link-list .social-link:hover, 
.footer-section .policy-text .policy-link:hover {
    color: lightpink;
}

.footer-section .policy-text .separator {
    margin: 0 5px;
    color: var(--white-color);
}


/* Responsive media query code for max width 900px */
@media screen and (max-width: 900px) {
    :root {
        --font-size-m:1rem;
        --font-size-l:1.3rem;
        --font-size-xl:1.5rem;
        --font-size-xxl:1.8rem;
    }

    body.show-mobile-menu header::before {
        content: "";
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        backdrop-filter: blur(5px);
        background: rgba(0, 0, 0, 0.2);
    }

    .navbar .nav-menu :where(#menu-close-button, #menu-open-button) {
        display: block;
        font-size: var(--font-size-l);
    }

    .navbar #menu-close-button {
        position: absolute;
        right: 30px;
        top: 30px;
    }

    .navbar #menu-open-button {
        color: var(--dark-color);
        display: block;
    }
    .navbar .nav-menu {
        display: block;
        position: fixed;
        left: -300px;
        top: 0;
        width: 300px;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 100px;
        background: var(--white-color);
        transition: left 0.2s ease;
    }

    body.show-mobile-menu .navbar .nav-menu {
        left: 0;
    }

    .navbar .nav-menu .nav-link {
        color: var(--dark-color);
        display: block;
        margin-top: 17px;
        font-size: var(--font-size-l);
    }

    .hero-section .section-content {
        gap: 50px;
        text-align: center;
        padding: 30px 20px 20px;
        flex-direction: column-reverse;
        justify-content: center;
    }

    .hero-section .hero-details :is(.subtitle, .description),
    .about-section .about-details, .contact-section .contact-form {
        max-width: 100%;
    }

    .hero-section .hero-details .buttons {
        justify-content: center;
    }

    .hero-section .hero-image-wrapper {
        max-width: 270px;
        margin-right: 0;
    }

    .about-section .section-content {
        gap: 70px;
        flex-direction: column-reverse;
    }

    .about-section .about-image-wrapper .about-image {
        width: 100%;
        height: 100%;
        max-width: 250px;
        aspect-ratio: 1;
    }

    .contact-section .section-content {
        align-items: center;
        flex-direction: column-reverse;
        
    }
   
}

/* types media query */

@media screen and (max-width: 640px) {

    .types-section .slider-wrapper {
        margin: 0 0 30px;
    }

    .types-section .swiper-slide-button {
        display: none;
    }

    .footer-section .section-content {
        flex-direction: column;
        gap: 20px;
    }
    
}